<!doctype html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>蘑菇街-②确认订单</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="copyright" content="" />
    <link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/pkg-base.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/pkg-shopnav.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/pkg-generator.css" />
    <!-- // <script type="text/javascript" src="<?php echo __PUBLIC__?>/Home/js/pkg-pc-base.js"></script> -->
    <script type="text/javascript" src="<?php echo __PUBLIC__?>/jquery-1.8.js"></script>
</head>
<style type="text/css">
    textarea{
        resize: none;
    }
    .cart_surebtn{
        border-style: none;
    }
</style>
<body class="media_screen_1200">
    <!--右侧导航栏-->
    <div style="right: 0px;" class="mgj_rightbar">
        <!--空的右侧边栏-->
        <div id="mgj_rightbar_top_blank" class="mgj_rightbar_960">
        </div>
        <!--方便定margin的空div-->
        <div id="mgj_rightbar_blank_div">
        </div>
       
        <!--购物车-->
        <div style="left: 0px;" class="sidebar-item mgj-my-cart">
            <a target="_blank" href="" >
                <i class="s-icon">
                </i>
                <div class="s-txt">
                    购物车
                </div>
                <div class="num">
                </div>
            </a>
        </div>
        <!--优惠券-->
        <div class="sidebar-item mgj-my-coupon">
            <a target="_blank"  href="">
                <i class="s-icon">
                </i>
                <!--我的优惠券-->
                <div class="s-txt">
                    优惠券
                </div>
                <div class="num">
                </div>
            </a>
        </div>
        <!--钱包-->
        <div class="sidebar-item mgj-my-wallet">
            <a target="_blank" rel="nofollow" href="">
                <i class="s-icon">
                </i>
                <!--我的钱包-->
                <div class="s-txt">
                    钱包
                </div>
            </a>
        </div>
        <!--足迹-->
        <div class="sidebar-item mgj-my-browserlog">
            <a target="_blank" rel="nofollow" href="">
                <i class="s-icon">
                </i>
                <!--我的足迹-->
                <div class="s-txt">
                    足迹
                </div>
            </a>
        </div>
        <!--返回顶部-->
        <div class="sideBottom">
            <div class="sidebar-item mgj-back2top show" style="left: 0px;">
                <a href="javascript:;" rel="nofollow">
                    <i class="s-icon">
                    </i>
                </a>
            </div>
        </div>
    </div>
    <!--右侧导航栏-结束->
    <!--顶部开始-->
    <div id="header" class="header_2015" >
        <div class="wrap clearfix">
            <!-- 顶通 -->
            <a href="" class="home fl">
                蘑菇街首页
            </a>
            <ul class="header_top">
<!-- ================== -->
                <!-- 如果用户没有登录那就显示登录注册 -->
                <?php if(!Session::has('uid')){?>
                
                <li class="s1 ">
                    <a  href="<?php echo U('User/register')?>">
                        注册
                    </a>
                </li>
                <li class="s1 ">
                    <a  href="<?php echo U('User/login')?>">
                        登录
                    </a>
                </li>
                <?php }else{?>
                <!-- 如果用户已经登录那就显示用户的信息 -->
                <!-- 登陆之后出现 -->
                <li class="s1 has_icon user_meta haahah">
                    <!-- 用户昵称 -->
                    <a href="javascript:;" >
                        <?php echo $_SESSION['username']?>
                    </a>
                    <!-- 等级 -->
                    <a target="_blank" href="" >
                        <span class="level level0">
                        </span>
                    </a>
                    <i class="icon_delta">
                    </i>
                    <ol id="menu_personal" class="ext_mode">
                        <li class="s2">
                            <a href=""  target="_blank" >
                                个人设置
                            </a>
                        </li>
                        <li class="s2">
                            <a href=""  target="_blank" >
                                账号绑定
                            </a>
                        </li>
                        <!-- 退出登录 -->
                        <li class="s2">
                            <a href="<?php echo U('User/out')?>"  >
                                退出
                            </a>
                        </li>
                    </ol>
                </li>
                <!-- ===================== -->
                <li class="s1 has_line message_center">
                    <a class="ext_module mogutalk_btn J_msg open_msg micon __trace__"  href="javascript:;" rel="nofollow" >
                        消息
                        <span class="num m_num" style="display: none;">
                        </span>
                    </a>
                </li>
                <li class="s1 has_icon has_line user_fav">
                    <a href="javascriot:;" >
                        我的收藏
                    </a>
                    <i class="icon_delta">
                    </i>
                    <ul class="ext_mode">
                        <li class="s2">
                            <a href=""  target="_blank" >
                                收藏的商品
                            </a>
                        </li>
                        <li class="s2">
                            <a href="" target="_blank" >
                                收藏的小店
                            </a>
                        </li>
                        <li class="s2">
                            <a href=""  target="_blank" >
                                浏览足迹
                            </a>
                        </li>
                    </ul>
                </li>
                
               <?php }?>
                <!-- ======= -->
                <!--我的订单-->
                <li class="s1 myorder has_line">
                    <a href="" target="_blank" class="text display_u">
                        我的订单
                    </a>
                </li>
                <!--我的订单--结束-->
                <!--我的购物车-开始-->
                <li class="s1 has_line shopping_cart_v2">
                    <a class="cart_info_wrap" href="" target="_blank">
                        <span class="cart_info">购物车</span>
                    </a>
                    <i class="icon_delta">
                    </i>
                    <!-- ==== -->
                    <!-- 顶部购物车效果 -->
                    <script type="text/javascript">
                            $(function(){
                                $('.shopping_cart_v2').mouseover(function() {
                                    $('.shop_cart_info').css({display:"block"});
                                });
                                $('.shopping_cart_v2').mouseout(function() {
                                    $('.shop_cart_info').css({display:"none"});
                                });
                            })

                    </script>
                    <!-- ===== -->
                    <div style="" class="shop_cart_info">
                        <ul>
                            <li>
                                <a href="" target="_blank" class="imgbox">
                                    <img src="<?php echo __PUBLIC__?>/Home/images/1zlav6_ifrgim3dgvqtcyrqguzdambqmeyde_640x960.jpg_100x100.jpg" alt="" width="45">
                                </a>
                                <a href="" target="_blank" class="title">
                                    加厚毛领羽绒服衣外套
                                </a>
                                <span class="info">颜色：米白 尺码：M</span>
                                <span class="price">¥244.30</span>
                                <span class="del">删除</span>
                            </li>
                        </ul>
                        <div class="subbox">
                            <div class="fr">
                                <a href="<?php echo U('Cart/index')?>" target="_blank" class="goel">
                                    查看购物车
                                </a>
                            </div>
                        </div>
                    </div>
                    <!-- </div>  -->
                    <!-- ======================================== -->
                </li>
                <!--我的购物车结束-->
                <!--客户服务-开始-->
                <li class="s1 has_line has_icon custom_item">
                    <a href=""  target="_blank">
                        客户服务
                    </a>
                    <i class="icon_delta">
                    </i>
                    <ol class="ext_mode">
                        <li class="s2">
                            <a target="_blank"  href="">
                                联系合作
                            </a>
                        </li>
                        <li class="s2">
                            <a  href="" target="_blank">
                                帮助
                            </a>
                        </li>
                    </ol>
                </li>
                <!--客户服务-结束--->
                <!--我的小店----开始-->
                <li class="s1 has_line myxiaodian">
                    <a href="" target="_blank" class="text display_u">
                        我的小店
                    </a>
                </li>
                <!--我的小店----结束-->
            </ul>
        </div>
    </div>


    <div id="body_wrap">
    <!------------------------>    
<div class="g-header clearfix">
    <div class="g-header-in wrap clearfix">
    	<!--确认订单流程-->
        <div class="process-bar">
            <div class="md_process md_process_len4">
    <div class="md_process_wrap md_process_step2_5">
        <div class="md_process_sd"></div>
                    <i class="md_process_i md_process_i1">
                1     <span class="md_process_tip">购物车</span>
            </i>
                    <i class="md_process_i md_process_i2">
                2   <span class="md_process_tip">确认订单</span>
            </i>
                    <i class="md_process_i md_process_i3">
                3    <span class="md_process_tip">支付</span>
            </i>
                    <i class="md_process_i md_process_i4">
                    <img src="<?php echo __PUBLIC__?>/Home/images/right.png" width="23" height="23" alt="">
                    <span class="md_process_tip">完成</span>
            </i>
            </div>
		</div>        
        </div>
<!--流程结束-->

<!--蘑菇街logo-->
        <a title="蘑菇街|我的买手街" href="" target="_blank">
            <div class="logo logo-generate"></div>
        </a>
 <!------>
    </div>
</div>
<!---->
<div class="g-wrap wrap">

<div class="cart_wrap">
     <!-- 页面内容 -->
	<div class="cart_page_wrap pt0">
            
	<h2 class="cart_stit">请先填写收货地址</h2>
	<div class="cart_address_wrap" id="cartAddress">
	    
	        <ul class="cart_address_list clearfix"  id="cartAddressList"></ul>
	
	   <ul class="cart_address_ctrl clearfix" id="addressCtrl">

            <li> <a href="javascript:;" class="cart_icon_link allAddressSwitch" style="display:none">显示全部地址<i class="cart_icon_quarw">down</i></a> </li>

            <!-- 旧地址 -->
            <!--<ul class="cart_address_list clearfix" style="display:none"  id="cartAddressList">
            <li >
                <a class="cart_address_card addressCard " href="javascript:;">
                   <i class="cart_address_default" style="display:block">默认地址</i>
                   <h5 class="cart_address_list">李鹏飞</h5>
                   <p class="cart_address_street">北京市朝阳区马泉营村</p>
                   <p class="cart_address_zipinfo">10000</p>
                   <p class="cart_address_mobile">15294383356</p>
                   <i class="cart_address_edit" style="">编辑</i>
                </a>
            </li>
           
            </ul>-->
           
           
            <!-- ======== -->
            <!-- <li> <a href="" target="_blank">管理收货地址</a> </li> -->
            <!--<li> <a href="javascript:;" class="addNewAddress">使用新地址</a></li>-->
          
            
        </ul>
       <script type="text/javascript">

//          $(function(){
//              $('.addNewAddress').click(function() {
//                  // alert(0);
//                 $('.addAddressForm').css({display:'block'});
//              });
//          })
       </script>
        <!-- 城市联动 -->
  <script class="resources library" src="<?php echo __PUBLIC__?>/Home/js/area.js" type="text/javascript"></script>
 <script type="text/javascript">
			var Gid  = document.getElementById ;
			var showArea = function(){
				Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" + 	
				Gid('s_city').value + " - 县/区" + 
				Gid('s_county').value + "</h3>"
				}
		Gid('s_county').setAttribute('onchange','showArea()');
</script>

<!--============================-->

      <div class="info addAddressForm" style="display:block">
      <!-- 表单 -->
	<form action="" method="post">
            <div class="addressbox_warp">
              
                	<div class="__addressPop">
                		<dl class="address_pop">
                
                		<dt>省：</dt>
                		<dd class="pt_ie6hack">
                			
                		<select id="s_province" name="s_province"  ></select>  
                			
                		</select>
                		<label class="dt" for="">市：</label>
                		 <select id="s_city" name="s_city" ></select>  
                	
                		</select>
                		<label class="dt" for="">区：</label>
                		<select id="s_county" name="s_county"></select>
                		
                		</select>
                		<script type="text/javascript">_init_area();</script>
	                   <div id="show"></div>
                       <!-- ========================================= -->
                		<span class="prompt"></span>
                		</dd><dt>邮政编码：</dt>

                        <dd>
                			<input  class="text formsize_normal J_postcode J_form vm" name="postcode" type="text">
                				<span class="prompt"></span>
                        </dd>
                			<dt>街道地址：</dt>
                			<dd>
                				<textarea class="textarea formsize_large J_street J_form" placeholder="请填写街道地址，最少5个字，最多不能超过100个字" name="address" cols="30" rows="3"></textarea>
                			</dd>
                			<dt>收货人姓名：</dt>
                			<dd>
                				<input class="text formsize_normal J_name J_form vm" name="consignee" type="text">
                				<span class="prompt"></span>
                			</dd>
                			<dt>手机：</dt>
                			<dd>
                				
                				<input  class="text formsize_normal J_mobile J_form vm" name="phone" type="text">
                					<span class="prompt"></span>
                			</dd>
                			<dt></dt>
                            <!-- 确认地址按钮 -->
                			<!-- <dd class="pt10 oper_btn">
                                <a href="javascript:;" class="confirm_btn J_okbtn mr10">确认地址</a>
                                <a href="javascript:;" class="cancel_btn J_cancelbtn">取消</a>
                			</dd> -->
                		</dl>
                	</div>
                
            </div>
	<!--========================-->
    </div>

</div>


<!--确认商品信息-->
<h2 class="cart_stit pt10">确认商品信息</h2>
<!-- 表格 确认商品信息 -->
<table class="cart_table" id="orderTable">
<thead>
<tr>
    <th class="cart_table_goods_wrap">商品</th>
    <th class="cart_table_goodsinfo_wrap">商品信息</th>
    <th width="80">单价(元)</th>
    <th width="80">数量</th>
    <th class="cart_table_goodsctrl_wrap">小计(元)</th>
</tr>
</thead>
<tbody>
	
<!---->
    <?php foreach ($cartData['goods'] as $field){?>

            <tr class="tr_checked item4shop1orqxa" >
            <!-- 商品 -->
            <td class="cart_table_goods_wrap">
                <a href="" target="_blank" class="cart_goods_img">
                 <img class="cartImgTip" src="<?php echo __ROOT__?>/<?php echo $field['cartImg']?>" width="78" height="78" alt="图片" />
                </a>
                <a href="" target="_blank" class="cart_goods_t cart_hoverline" ><?php echo $field['name']?></a>  
            </td>

			<!-- 商品信息 -->
            <td>
            <?php foreach ($field['options'] as $v){?>
                <?php foreach ($v as $taname=>$tavalue){?>
                <p class="cart_lh20"><?php echo $taname?>：<?php echo $tavalue?></p>
                <?php }?>
            <?php }?>
            </td>
			<!-- 商品单价 -->
            <td class="cart_alcenter">
                <p class="cart_bold cart_itemUnit"><?php echo $field['price']?></p>
            </td>
			<!-- 商品数量 -->
            <td class="cart_alcenter">
                <p class="cart_itemNum"><?php echo $field['num']?></p>
            </td>
                <!-- 小计-->
          <td class="cart_alcenter">
               <p class="cart_font16 item_sum itemSum"><?php echo $field['total']?></p>
          </td>
                  <!--小计结束-->
           </tr>
          
    <?php }?>
                
            <tr class="tr_checked">
            	<!--备注信息-->
                <td colspan="3" class="pl10 cart_largepding">
                    <label for="">备注：</label>
                    <input type="text" class="cart_table_note cart_text cart_vm" placeholder="例：颜色,白色;" value="" name="remark" id=""/>
                </td>
                <!----备注结束-->
                
                <!--快递方式-->
                <td colspan="3" class="pr15 cart_largepding">            
                <div class="cart_table_discount pt5 pr10 clearfix">
                	
                    <span class="ml20 fr">快递运费：<strong>全国包邮</strong></span>
                </div>
                <!-- 选择快递方式 结束-->
            <!-- </div> -->
                </td>
            </tr>
       
        <!-- 商品总价合计-->
        <tr class="tr_checked">
            <td colspan="6" class="pl10 pr20 cart_largepding">
                <div class="cart_table_disduce cart_lightgray cart_font16 fr">
                    合计：<span class="cart_red cart_bold cart_money shopSum">¥ <?php echo $cartData['total']?></span>
                    <input type="hidden" class="shoppro" value="<?php echo $cartData['total']?>" name="totalprice"/>
                </div>
            </td>
        </tr>

</tbody>
</table>
</div>
<!-- 页面内容 结束 -->
 </div>
 <!-- 付款 -->
    <div>
        <div class="cart_paybar">
        	
         <input type="submit" class="cart_surebtn fr" value="确认并付款">
            <!-- 商品价格总计 -->
               <span class="cart_paybar_info_cost cart_red cart_bold cart_font26 cart_money fr goodsSum">¥ <?php echo $cartData['total']?></span>
               <!--商品件数-->
	             <div class="cart_paybar_info cart_pregray fr">
	                	共有 <span class="cart_red goodsNum"><?php echo $cartData['total_rows']?></span> 件商品，总计：
	            </div>
            <a href="<?php echo U('Cart/index')?>" class="cart_back cart_hoverline cart_pregray">返回购物车</a>
        </div>
    </div>
</form>
<!-- =========  -->
    </div>
    </div>

<!-- 底部 -->
    <div class="g-footer">
    <p title="qihe12030">
        <a href="" target="_blank">蘑菇街</a> |
        <a href="" target="_blank">加入开放平台</a>
        &copy; 2015 Mogujie.com,All Rights Reserved.
    </p>
    <!--友情链接-->
    <div class="icons">
        <a class="vs" href="javascript:;"></a>
        <a class="mc" href="javascript:;"></a>
        <a class="up" href="javascript:;"></a>
        <a class="pa" href="" target="_blank"></a>
        <a class="kx" href="" target="_blank"></a>
        <a class="pc" href="" target="_blank"></a>
    </div>
</div>
    <!-- // <script type="text/javascript" src="<?php echo __PUBLIC__?>/Home/js/header.js"></script> -->
    <!-- // <script type="text/javascript" src="<?php echo __PUBLIC__?>/Home/js/pkg-generator.js"></script>     -->
</body>
</html>
